<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /*         function fun1() {
                    console.log("a = " + this.a);
                    console.log("b = " + this.b);
                }
                function fun2(a, b) {
                    console.log("a = " + a);
                    console.log("b = " + b);
                }
                var obj = {
                    a: 1,
                    b: 2,
                    // sayName: fun1
                }
                var arr = [5, 6]
                fun1.call(obj);
                // obj.sayName();
                fun2.call(obj, 3, 4);
                fun2.apply(obj, arr)
        
                function fun3(a) {
                    if (a <= 1){
                        return 1;
                    }
                    else {
                        return a + arguments.callee(a - 1);
                    }
                }
        
                console.log(fun3(2)); */

    </script>
</body>

</html>